/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xml.avaliation;

import beans.Avaliation;
import beans.Beer;
import beans.Judge;
import java.util.List;

/**
 *
 * @author heinen
 */
public class testAvaliation {

    public static void main(String[] args) {
        Judge judge = new Judge();
        judge.setId(1l);
        judge.setBjcpId("abc123");
        judge.setEmail("aa@aa.aa");
        judge.setName("teste");
        judge.setSenha("teste");
//        Avaliation a = new Avaliation();
//        a.setId(1l);
//        a.setJudge(judge);
//        a.setAcetaldeHyde(Boolean.TRUE);
//        a.setAlcoholic(Boolean.TRUE);
//        a.setAppearence("teste");
//        a.setAroma("teste");
//        a.setAstringent(Boolean.TRUE);
//        Beer beer = new Beer();
//        beer.setAlcoholicPercentage(new Float("2.4"));
//        beer.setDescription("teste");
//        beer.setId(1l);
//        beer.setImage("teste");
//        beer.setMark("teste");
//        beer.setName("teste");
//        a.setBeer(beer);
//        a.setBjcpKnowledge("knowledge");
//        a.setBootleInspection(Boolean.TRUE);
//        a.setCategory("teste");
//        a.setComments("teste");
//        a.setDiacetyl(Boolean.TRUE);
//        a.setDms(Boolean.TRUE);
//        a.setEntry("teste");
//        a.setEstery(Boolean.TRUE);
//        a.setFlavor("teste");
//        a.setGrassy(Boolean.TRUE);
//        a.setLightStruck(Boolean.FALSE);
//        a.setMetallic(Boolean.TRUE);
//        a.setMouthfeel("teste");
//        a.setMusty(Boolean.TRUE);
//        a.setNonBjcpKnowledge("teste knowledge");
//        a.setOverallImpression("teste");
//        a.setOxidized(Boolean.TRUE);
//        a.setPhenolic(Boolean.TRUE);
//        a.setScoreAppearence(5);
//        a.setScoreAroma(5);
//        a.setScoreFlavor(5);
//        a.setScoreMouthfeel(5);
//        a.setScoreOverall(5);
//        a.setSolvent(Boolean.TRUE);
//        a.setSourAcid(Boolean.FALSE);
//        a.setSourAcid(Boolean.FALSE);
//        a.setSpecialIngredients("nenhum");
//        a.setSubcategory("teste");
//        a.setSubcategorySpell("teste subcategoria");
//        a.setSulfur(Boolean.TRUE);
//        a.setSumScore(5);
//        a.setVegetal(Boolean.TRUE);
//        a.setYeasty(Boolean.TRUE);
//        AvaliationWriter writer = new AvaliationWriter(judge);
//        writer.print(a);
//        System.out.println("Success");

        AvaliationReader reader = new AvaliationReader(judge);
        List<Avaliation> avaliations = reader.getAllAvaliationsLoggedUser();
        for (Avaliation av : avaliations) {
            System.out.println(av);
        }
    }
}
